﻿

using UnityEngine;

namespace Gameplay
{
    [CreateAssetMenu(fileName = "NewRoll", menuName = "Skill/Roll")]
    public class Roll : Skill
    {
        public float Force;
        public override void Trigger()
        {  
            _rb.AddForce(_user.Direction.normalized*Force, ForceMode.VelocityChange);
        }

        public override void Finish()
        {
            _rb.velocity = new Vector3(0,_rb.velocity.y,0);

        }
    }
}
